Page History: TraderLogout
Compare Page Revisions
Page Revision: 2015/06/12 11:55
Logging out TradersUnder an established FIX Session, multiple traders/users can be authenticated with the Trader Logon message. Trader Logons allow order routing for multiple traders under the the same physical connection of the FIX Session.
Trader Logons must follow the successful
FIX Logon of the initial Master User.
A traders that has been successfully authenticated with
Trader Logon can be logged out by the Master User with the Trader Logout message.
Identifying the TraderThe Trader Logout identifies the target trader with UserName tag (Tag 553). No need for password is required.
Tag Name | Tag Number | Description |
---|
UserName | 553 | T4 User |
A successful attempt to log out a trader is acknowledged with a
Trader Logout Response message that contains a
Success> description in the Text tag (Tag 58).
Failure to logout a trader will result in a failed Trader Logout Response message sent to the client. The Trader Logout Response message may contain a short description of the failure in its Text tag (Tag 58).
A failed Trader Logout does not result in a physical disconnection. The FIX Session continues with the participation of the Master User and other traders that were previously authenticated and remained logged in. The FIX Session can only be terminated by a FIX Logout message.
Message Dictionary
Tag | Field Name | Req'd | Comments |
---|
| Standard Header | Y | MsgType = UCH |
49 | SenderCompID | Y | T4 Application Name (inbound trader login into FIX API server). T4 Firm Name (outbound trader login response from FIX API server). |
56 | TargetCompID | Y | T4 Firm Name (inbound trader login into FIX API server). T4 Application Name (outbound trader login response from FIX API server). |
| Body | Y | |
553 | UserName | Y | T4 User to be logged out. |
| Standard Trailer | Y |
Sample
In this example, the T4 FIX API client requests the start of a FIX Session. The client enables the Multi-Trader mode (with Tag 372=UCG). Subsequently, the login request's success is signaled by a Login message response from the T4 FIX API. This establishes the FIX Session with the Master User. Subsequently, the client sends a Trader Logon to authenticate a new Trader/User under the current FIX Session. The success of the Trader Logon is responded by the FIX API with a Success Trader Logon Response. An attempt to logout this trader is requested by the FIX API client with the Trader Logout message. The FIX API responds with Success as the FIX client correctly identified the logged-in trader. Finally, the client requests the termination of the FIX Session with a FIX Logout message. The FIX API responds with a FIX Logout indicating the end of the FIX session.
Login Request from T4 FIX API Client
>> 6/12/2015 11:27:49 AM [FIXLOGIN] 34=1|49=T4Test|56=test|50=MasterUser|52=20150612-16:27:49.788|91=64768859-3ACF-4224-A4E9-DA66901AFC63|90=36|98=None|108=25|553=MasterUser|554=_password_|384=3|372=BB|372=d|372=UCG|
[FIXLOGIN]
[MsgSeqNum] 34 = 1
[SenderCompID] 49 = T4Test
[TargetCompID] 56 = test
[SenderSubID] 50 = MasterUser
[SendingTime] 52 = 20150612-16:27:49.788
[SecureData] 91 = 64768859-3ACF-4224-A4E9-DA66901AFC63
[SecureDataLen] 90 = 36
[EncryptMethod] 98 = None
[HeartBtInt] 108 = 25
[UserName] 553 = MasterUser
[Password] 554 = _password_
[NoMsgTypes] 384 = 3
[RefMsgType] 372 = BB (DISABLE_ACCOUNT_AUTOSUBSCRIPTION)
[RefMsgType] 372 = d (DISABLE_PORTFOLIO_LISTING)
[RefMsgType] 372 = UCG (ENABLE_TRADER_LOGINS)
Successful Login Response from T4 FIX API
<< 6/12/2015 11:27:49 AM [fixlogin] 34=1|49=test|56=T4Test|50=T4FIX|52=20150612-16:27:49.944|98=0|108=30|553=MasterUser|554=***|1408=4.3.34.5|
[FIXLOGIN]
[MsgSeqNum] 34 = 1
[SenderCompID] 49 = test
[TargetCompID] 56 = T4Test
[SenderSubID] 50 = T4FIX
[SendingTime] 52 = 20150612-16:27:49.944
[EncryptMethod] 98 = 0 (NONE)
[HeartBtInt] 108 = 30
[UserName] 553 = MasterUser
[Password] 554 = ***
[DefaultCstmApplVerID] 1408 = 4.3.34.5
Trader Logon Request from T4 FIX API Client
>> 6/12/2015 11:27:56 AM [FIXTRADERLOGIN] 34=2|49=T4Test|56=test|50=MasterUser|52=20150612-16:27:56.716|91=64768859-3ACF-4224-A4E9-DA66901AFC63|90=36|553=Trader1|554=_traderpassword_|
[FIXTRADERLOGIN]
[MsgSeqNum] 34 = 2
[SenderCompID] 49 = T4Test
[TargetCompID] 56 = test
[SenderSubID] 50 = MasterUser
[SendingTime] 52 = 20150612-16:27:56.716
[SecureData] 91 = 64768859-3ACF-4224-A4E9-DA66901AFC63
[SecureDataLen] 90 = 36
[UserName] 553 = Trader1
[Password] 554 = _traderpassword_
Successful Trader Logon Response from T4 FIX API
<< 6/12/2015 11:27:57 AM [fixtraderloginresponse] 34=2|49=test|56=T4Test|50=T4FIX|52=20150612-16:27:57.363|553=Trader1|58=Success|
[FIXTRADERLOGINRESPONSE]
[MsgSeqNum] 34 = 2
[SenderCompID] 49 = test
[TargetCompID] 56 = T4Test
[SenderSubID] 50 = T4FIX
[SendingTime] 52 = 20150612-16:27:57.363
[UserName] 553 = Trader1
[Text] 58 = Success
Trader Logout Request from T4 FIX API Client
>> 6/12/2015 11:28:02 AM [FIXTRADERLOGOUT] 34=3|49=T4Test|56=test|50=MasterUser|52=20150612-16:28:02.066|553=Trader1|
[FIXTRADERLOGOUT]
[MsgSeqNum] 34 = 3
[SenderCompID] 49 = T4Test
[TargetCompID] 56 = test
[SenderSubID] 50 = MasterUser
[SendingTime] 52 = 20150612-16:28:02.066
[UserName] 553 = Trader1
Successful Trader Logout Response from T4 FIX API
<< 6/12/2015 11:28:02 AM [fixtraderlogoutresponse] 34=3|49=test|56=T4Test|50=T4FIX|52=20150612-16:28:02.070|553=Trader1|58=Success|
[FIXTRADERLOGOUTRESPONSE]
[MsgSeqNum] 34 = 3
[SenderCompID] 49 = test
[TargetCompID] 56 = T4Test
[SenderSubID] 50 = T4FIX
[SendingTime] 52 = 20150612-16:28:02.070
[UserName] 553 = Trader1
[Text] 58 = Success
Logout Request from T4 FIX API Client
>> 6/12/2015 11:28:09 AM [FIXLOGOUT] 34=4|49=T4Test|56=test|52=20150612-16:28:09.210|
[FIXLOGOUT]
[MsgSeqNum] 34 = 4
[SenderCompID] 49 = T4Test
[TargetCompID] 56 = test
[SendingTime] 52 = 20150612-16:28:09.210
Successful Logout Response from T4 FIX API
<< 6/12/2015 11:28:09 AM [fixlogout] 34=4|49=test|56=T4Test|50=T4FIX|52=20150612-16:28:09.212|58=Successful logout upon request|
[FIXLOGOUT]
[MsgSeqNum] 34 = 4
[SenderCompID] 49 = test
[TargetCompID] 56 = T4Test
[SenderSubID] 50 = T4FIX
[SendingTime] 52 = 20150612-16:28:09.212
[Text] 58 = Successful logout upon request
FIX API Home Page.